//
//  Task.m
//  QiYReader
//
//  Created by 奇阅科技 on 14/12/20.
//  Copyright (c) 2014年 奇阅科技. All rights reserved.
//

#import "Task.h"

@implementation Task
- (id)initWithCoder:(NSCoder *)decoder {
    self = [super init];
    if (self != nil) {
        self.title = [decoder decodeObjectForKey:@"title"];
        self.exp = [decoder decodeObjectForKey:@"exp"];
        self.integral = [decoder decodeObjectForKey:@"integral"];
        self.isFinshed = [decoder decodeBoolForKey:@"isFinshed"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)encoder {
    [encoder encodeObject:self.title forKey:@"title"];
    [encoder encodeObject:self.exp forKey:@"exp"];
    [encoder encodeObject:self.integral forKey:@"integral"];
    [encoder encodeBool:self.isFinshed forKey:@"isFinshed"];
}
@end
